#include "ObjectHeap.h"
#include "types.h"
#include <map>
using namespace std;

Object* ObjectHeap::createObject(string className){
	Class *rClass = refClass->getClass(className);
	Class *dump = new Class(*rClass);
	Object *ob = new Object(OBJECT_T,dump);
	refObject.insert(pair<Object*,int>(ob,1));
	return ob;
}